package com.wn.study.repository

import androidx.lifecycle.LiveData
import androidx.paging.PagingData
import com.wn.service.db.UserInfo
import com.wn.study.repository.data.Daily2
import kotlinx.coroutines.flow.Flow

/**
 * @Author: wn
 * @Date: 2023/6/29 16:41
 * @Description: TODO
 */
interface IStudyRepository {
  /**
   * 获取 liveData-userinfo的 dao 操作
   * @return LiveData<UserInfo>
   */
  fun getLiveUserInfo(): LiveData<UserInfo>

  fun getDaily(): Flow<PagingData<Daily2.Item>>
}